const Router = require("koa-router");


import { demo, index, post, get } from './controllers/action.js';

//路由
let route = Router();

//首页
route.get('/', index);

//demo
route.get('/demo', demo);

//post
route.get('/post', post);
route.post('/post', post);

//get
route.get('/get', get);
route.post('/get', get);


export default route;